﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reply.aspx.cs" Inherits="E.Web.Teacher.interactive.Reply" %>
<%@ Import Namespace="X.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>师生互动</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/interactive.css" type="text/css" media="all" />
  <script type="text/javascript">
    function CheckForm() {
      var content = document.getElementById("ContentTxt").value;
      if (content != "") {
        return true;
      } else {
        alert("请填写回复内容");
        return false;
      }
    }
  </script>
</head>
<body>
  <form id="form1" action="" method="post">
    <div class="m_top"></div>
    <div class="block">
      <div style="width:650px; height:22px;">
        <div class="title">答疑回复</div>
      </div>
      <div class="spe_line_2"></div>
      <% if (model.ID != -1) { %>
      <div class="box_1">
        <div class="fl tr left">学员姓名：</div>
        <div class="fl dis_r"><%=model.UserName%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">提交时间：</div>
        <div class="fl dis_r"><%=model.AddDate%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">内容：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(model.Content)%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">回复内容：</div>
        <div class="fl"><textarea id="ContentTxt" name="ContentTxt" style="width:450px; height:200px; font:12px '宋体';"></textarea></div>
      </div>
      <div style="margin:20px 0 0 110px;">
        <input type="hidden" id="id" name="id" value="<%=model.ID %>" />
        <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return CheckForm();" />&nbsp;&nbsp;
        <img alt="" src="/images/btn/back.gif" class="cursor" onclick="history.back();" />
      </div>      
      <% } else { %>
      <div class="box_1"><p>数据读取错误</p></div>
      <div style="margin:20px 0 0 110px;"><img alt="" src="/images/btn/back.gif" class="cursor" onclick="history.back();" /></div>
      <% } %>
    </div>
  </form>
</body>
</html>
